package com.cn.service.server.bc.Impl;


import com.cn.mapper.dao.db1.bc.K3bmDao;
import com.cn.service.server.bc.GetK3bmServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cn.bean.pojo.bc.K3bm;
import java.util.List;

@Service
public class GetK3bmServerImpl implements GetK3bmServer {
    private final K3bmDao k3bmDao;

    @Autowired(required=false)
    public GetK3bmServerImpl(K3bmDao k3bmDao) {
        this.k3bmDao = k3bmDao;
    }
    @Override
    public List<K3bm> getK3bm(String k3bm, String khmc, int limit, int page) {
        List<K3bm> k3bmList = k3bmDao.getK3bm(k3bm, khmc, limit, page);
        return k3bmList;
    }

    @Override
    public List<K3bm> selectK3bm() {
        return k3bmDao.selectK3bm();
    }

    @Override
    public int addK3bm(int k3bm, String bmmc, String wlgg, String jldw, String fnumber, int id) {
        return k3bmDao.addK3bm(k3bm,bmmc,wlgg,jldw,fnumber,id);
    }

    @Override
    public int K3bmCount() {
        return k3bmDao.K3bmCount();
    }
}
